package test;

public class Student extends People{
	public Teacher name;
	public Course site;
	public Student(int code,String name,char sex, Teacher t,Course c){
	  super(code,name,sex); 
	  this.name = t ;
	     this.site=c;
	 } 
public String toString(){
	  return"学生编号:"+getCode()+"学生姓名:"+getName()+"性别:"+getSex()+"授课老师："+name.name+this.site; 
	 } 
} 